#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time         : 17-11-28 下午8:00
# @Author       : xiaohan
# @File         : new_init.py
# @desc         : 

class A(object):
    _dict = dict()

    def __new__(cls, *args, **kwargs):
        if 'key' in A._dict:
            print('Exists')

            return A._dict.get('key', 'None')
        else:
            print('New')
            return super(A, cls).__new__(cls)

    def __init__(self):
        print('Init---')

        # A._dict.get('key') = self
        print(self)
        A._dict['key'] = self
        print('--')


a1 = A()
a2 = A()
a3 = A()
